<?php /* Smarty version Smarty-3.1.11, created on 2012-12-14 12:16:28
         compiled from "./smarty/templates/hotelsList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:203633629050caddc3534d80-61280517%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd6fbfcf42c25b8e5b3a345ec3715d03605de4c5b' => 
    array (
      0 => './smarty/templates/hotelsList.tpl',
      1 => 1355486493,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '203633629050caddc3534d80-61280517',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_50caddc364c1c9_75161781',
  'variables' => 
  array (
    'hotelArray' => 0,
    'hotel' => 0,
    'roomType' => 0,
    'image' => 0,
    'ok' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50caddc364c1c9_75161781')) {function content_50caddc364c1c9_75161781($_smarty_tpl) {?>
        <?php  $_smarty_tpl->tpl_vars['hotel'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hotel']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['hotelArray']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hotel']->key => $_smarty_tpl->tpl_vars['hotel']->value){
$_smarty_tpl->tpl_vars['hotel']->_loop = true;
?>
        	<input id="picture_number<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
"type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['nrOfPictures'];?>
" />
            <div id="hotel-division">
                <div id="hotel-ribbon-offers" class="hidden border-on" >
                    <img src="" />
                    <span>Promotion:</span>
                    <span id="hotel-text">Discount 30 % -- Book now !&nbsp;&nbsp;&nbsp;</span>
                </div>
                <div id="hotel-data" class="border-on marginless" >
                    <img class="thumbnailImage inline-block left" src="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['thumbnailUrl'];?>
" />
                    <div id="hotel-content" class="inline-block right">
                        <span id="hotel-name-price">
                            <h3 class="left"><?php echo $_smarty_tpl->tpl_vars['hotel']->value['hotelName'];?>
 </h3>

                            <h3 class="right" id="price_text">Avg rate: <?php echo intval(($_smarty_tpl->tpl_vars['hotel']->value['lRate']+$_smarty_tpl->tpl_vars['hotel']->value['hRate'])/2);?>
 <?php echo $_smarty_tpl->tpl_vars['hotel']->value['rateCurrencyCode'];?>


                            </h3>

                        </span>
                        <span id="hotel-short-desc" >
                            <?php echo mb_convert_encoding($_smarty_tpl->tpl_vars['hotel']->value['shortDesc'], 'UTF-8', 'HTML-ENTITIES');?>

                        </span>
                    </div>
                    <span id="" class=""></span>
                    <span id="" class=""></span>
                    <span id="" class=""></span>


                </div>


<div id="hotel_tabs">

    <div>

        <table cellspacing="0" id="tabs_table">
        <tr>
            <td class="hotel_details_tab" id="hotel_details_tab<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)"  onmouseout="a_mouseout(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onclick="a_click(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">
                <input type="hidden" id="tb_hotel_hidden<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" value="0" />
                <label class="hotels_tb" id="hotels_tb<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
"  onmouseover="a_hover(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(1,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)"  >Hotels Details  </label>
            </td>
            <td class="room_details_tab" id="room_details_tab<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onclick="a_click(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">
                <input type="hidden" id="tb_room_hidden<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" value="0" />
                <label class="room_tb" id="room_tb<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(2,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" >Rooms Details  </label>
            </td>
            <td class="galery_tab" id="galery_tab<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onclick="a_click(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
);show_picture(0,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">
                 <input type="hidden" id="tb_galery_hidden<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" value="0" />
                <label class="galery_tb" id="galery_tb<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" onmouseover="a_hover(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)" onmouseout="a_mouseout(3,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">Galery </label>
            </td>
            <td>

            </td>
            <td width="100px">

            </td>
                

                <td class="hotel_options">
                    Star Rating <img id="star_rating" src="./images/rating/star1.png"  height="15" onload="SetRating(this,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['rating'];?>
);" />
                </td>

            </tr>
        </table>
    </div>

    <div class="hotels" id="hotels<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" style="display:none;">
    	<?php echo $_smarty_tpl->tpl_vars['hotel']->value['propertyDetails'];?>

        <strong>Checkin Instructions</strong><br>
        <?php echo $_smarty_tpl->tpl_vars['hotel']->value['hotelPolicy'];?>

    </div>

    <div class="rooms" id="rooms<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" style="display:none;">
        <?php  $_smarty_tpl->tpl_vars['roomType'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['roomType']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['hotel']->value['roomTypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['roomType']->key => $_smarty_tpl->tpl_vars['roomType']->value){
$_smarty_tpl->tpl_vars['roomType']->_loop = true;
?>
            <div style="padding:5px;">
            <div style="border: 1px solid #000000; padding: 5px;">
          <?php if ($_smarty_tpl->tpl_vars['roomType']->value['cancelPolicy']!=''){?>
            <div>
                 
                
                <span style="font-weight:bold; font-size: 20px;"> <?php echo $_smarty_tpl->tpl_vars['roomType']->value['description'];?>
</span>
                <span   style="padding:10px;">
                    <strong style="color:#000;">
                       <?php echo $_smarty_tpl->tpl_vars['roomType']->value['averageRate'];?>
<?php echo $_smarty_tpl->tpl_vars['hotel']->value['rateCurrencyCode'];?>

                    </strong>
                 </span>
                <span   style="padding:10px;">
                    <?php if ($_smarty_tpl->tpl_vars['roomType']->value['nonRefundable']==1){?>
                        <label style="color:red;"><strong> NON-REFUNDABLE</strong></label>
                    <?php }else{ ?>
                        <label style="color:blue;">
                        <strong> REFUNDABLE</strong>
                        </label>
                    <?php }?>
                 </span>
                <span id="book_span">
                    
                            
                            <h3 class="right" style="padding-right:20px;">
                                                        
                            <form method="post" action="bookingPage.php">

                            <input name="hotelId"  type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['hotelId'];?>
"/>
                            <input name="supplierType"  type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['supplierType'];?>
"/>
                            <input name="roomRateKey" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['roomRateKey'];?>
"/>
                            <input name="roomRateCode" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['roomRateCode'];?>
"/>
                            <input name="roomTypeCode" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['roomTypeCode'];?>
"/>
                            <input name="hotelImage" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['thumbnailUrl'];?>
"/>
                            <input name="hotelName" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['hotel']->value['hotelName'];?>
"/>
                            <input name="roomDescription" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomType']->value['description'];?>
"/>
                            
                            <input name="total" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomType']->value['total'];?>
"/>
                            <input name="averageRate" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['roomType']->value['averageRate'];?>
"/>

                            <input value="Book now" id="search_button" type="submit" onclick=""></input>
                            </form>
					</h3>
                </span>
                <div> <?php echo $_smarty_tpl->tpl_vars['roomType']->value['descriptionLong'];?>
 </div>
                <div style="background-image: url(../images/templatemo_middle.jpg); color:#fff;padding:5px;">
                <div id="hotel_cancelation_policy<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" class="hotel_options">
                    <label class="link" onclick="showCancelationPolicy('cancelationPolicy<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
<?php echo $_smarty_tpl->tpl_vars['roomType']->value['roomId'];?>
')" >
                    Cancellation policy
                    </label>
                </div>

                <div id="cancelationPolicy<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
<?php echo $_smarty_tpl->tpl_vars['roomType']->value['roomId'];?>
" style="display:none;">
                <div style="padding:10px;">
                    <?php echo $_smarty_tpl->tpl_vars['roomType']->value['cancelPolicy'];?>

                </div>
                </div>
                </div>
            </div>
            <br />
            <?php }?>
            </div>
            </div>
        <?php } ?>
    </div>

    <div class="galery"  id="galery<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
" style="display:none;">

<!--
		<img src="<?php echo $_smarty_tpl->tpl_vars['image']->value['url'];?>
" style="<?php echo $_smarty_tpl->tpl_vars['image']->value['style'];?>
" <?php echo $_smarty_tpl->tpl_vars['image']->value['width_p'];?>
 <?php echo $_smarty_tpl->tpl_vars['image']->value['height_p'];?>
  />


            <img src=<?php echo $_smarty_tpl->tpl_vars['image']->value['url'];?>
 />
-->
<div id="galery_panel" >
        <div id="picture_panel">
            <div id="picture_frame" align="center">
            	 <?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['image']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['hotel']->value['hotelImages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
$_smarty_tpl->tpl_vars['image']->_loop = true;
?>
                    <?php $_smarty_tpl->tpl_vars['ok'] = new Smarty_variable(1, null, 0);?>
                    <?php if ($_smarty_tpl->tpl_vars['ok']->value==1){?>
                        <img src=<?php echo $_smarty_tpl->tpl_vars['image']->value['url'];?>
 style="block"  id="picture<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
<?php echo $_smarty_tpl->tpl_vars['image']->value['nr_picture'];?>
" />
                        <?php $_smarty_tpl->tpl_vars['ok'] = new Smarty_variable(0, null, 0);?>
                    <?php }else{ ?>
                        <img src=<?php echo $_smarty_tpl->tpl_vars['image']->value['url'];?>
 style="none"  id="picture<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
<?php echo $_smarty_tpl->tpl_vars['image']->value['nr_picture'];?>
" />
                    <?php }?>
                <?php } ?>
            </div>
        </div>
        <div id="tumbnails_panel">
            <div id="tumbnails_frame" align="center">
	<?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['image']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['hotel']->value['hotelImages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
$_smarty_tpl->tpl_vars['image']->_loop = true;
?>
    <label onclick="show_picture(<?php echo $_smarty_tpl->tpl_vars['image']->value['nr_picture'];?>
,<?php echo $_smarty_tpl->tpl_vars['hotel']->value['id'];?>
)">
    <img src=<?php echo $_smarty_tpl->tpl_vars['image']->value['thumbUrl'];?>
 width="50" height="40" />
    </label>
      <?php } ?>
          </div>
        <div id="photos_disclaimer">

           <div id="disclaimer_content" style="padding:5px;">
            Note: It is the responsibility of the hotel chain and/or the individual property to ensure the accuracy of the photos displayed. We are not responsible for any inaccuracies in the photos.
            </div>
         </div>
        </div>

    </div>


    </div>

</div>
</div>



</div>

</div>


            </div>

        <?php } ?>

<?php }} ?>